﻿﻿<?xml version="1.0" encoding="utf-8"?>
@model IList<Blog.Core.Entities.Article>
@using Blog.Presentation.UIHelpers
@{ 
    Layout = null;
    Response.ContentType = "application/xml";
}
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@foreach (var art in Model) { 
    <url>
        <loc>@UrlExtensions.LinkToArticle(art)</loc>
        <lastmod>@art.Date.ToString("yyyy-MM-dd")</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.8</priority>
    </url>  
}
</urlset>
